<template>
  <div>
    <el-row :gutter="20" type="flex">
      <el-col :span="6">
        <el-input placeholder="请输入名称" v-model="listQueryIn.name" clearable>
        </el-input>
      </el-col>
      <el-col :span="6">
        <el-button type="custom" @click="refreshList()" plain>搜索</el-button>
        <el-button type="custom" @click="handleAdd()" >新增</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Bus from "@/utils/bus.js";
export default {
  data() {
    return {
      listQueryIn: {
        name: "",
        page: 1,
      },
    };
  },
  props: ["type"],
  methods: {
    refreshList() {
      Bus.$emit("refreshClassroomList", this.listQueryIn);
    },
    handleAdd() {
      Bus.$emit("showDialogClassroomAdd");
    },
  },
};
</script>